#ifndef __EXT2_FS_SB_H__
#define __EXT2_FS_SB_H__

typedef unsigned int __u32;
typedef unsigned short __u16;

struct ext2_super_block{
	__u32 s_inodes_count;
	__u32 s_blocks_count;
	__u32 s_r_blocks_count;
	__u32 s_free_blocks_count;
	__u32 s_free_inodes_count;
	__u32 s_block_size;
	__u32 s_mtime;//mount time
	__u32 s_wtime;//write time
	__u16 s_magic;
	__u16 s_state;
};



struct ext2_sb_info{
	unsigned long s_frag_size;
	unsigned long s_frag_per_block;
	struct ext2_super_block *s_es;//指向super block的数据信息
};


#endif
//__EXT2_FS_SB_H__

